package com.ruoyi.fetv.controller.vo.image;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.ServiceRequireFiled;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @ClassName AddReq
 * @Description
 * @Author 15014
 * @Time 2023/3/7 12:47
 * @Version 1.0
 */
@ApiModel(value = "FetvImageAddReq", description = "图片对象addReq")
@Data
@Getter
public class AddReq extends ServiceRequireFiled {
    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id", hidden = true)
    private Long id;


    /**
     * 图片位置（字典）
     */
    @ApiModelProperty(value = "图片位置（字典）", required = true)
    @NotNull(message = "图片位置不能为空")
    private Long location;

    /**
     * 图片地址
     */
    @ApiModelProperty(value = "图片地址", required = true)
    @NotNull(message = "图片地址不能为空")
    private String url;

    /**
     * 说明
     */
    @ApiModelProperty(value = "说明")
    private String illustrate;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Long sort;

    /**
     * 跳转方式(字典）
     */
    @ApiModelProperty(value = "跳转方式(字典）", required = true)
    @NotNull(message = "跳转方式不能为空")
    private Long jumpMode;

    /**
     * 发布时间
     */
    @ApiModelProperty(value = "发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date releaseTime;

    /**
     * 状态（0正常 1停用）
     */
    @ApiModelProperty(value = "状态（0正常1停用）")
    private String status;
}
